package com.xiangban.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @Author ly
 * @date 2021/11/30 17:00
 */
@Data
@ApiModel("订单表")
public class Order {
    private Integer id;
    @ApiModelProperty("订单号")
    private String orderNo;
    @ApiModelProperty("金额")
    private BigDecimal money;
    @ApiModelProperty("类型1 门诊 2 血透 3 配药")
    private Integer type;
    @ApiModelProperty("状态订单状态 1待支付 2 预约中 3-12（9步骤）统称服务中 20 已完成 ")
    private Integer status;
    @ApiModelProperty("下单用户id")
    private Integer userId;
    @ApiModelProperty("当 accompany_id 不为0时  陪着接单状态 0 默认未答复  1 接受订单 2 拒绝订单 （未答复的订单超时变2）")
    private Integer accompanyStatus;
    @ApiModelProperty("患者id")
    private Integer patientId;
    @ApiModelProperty("医院/药店id")
    private Integer hospitalDrugId;
    @ApiModelProperty("配药类型 type=3 填写 1 医院配药 2药店配药 ")
    private Integer typeDrug;
    @ApiModelProperty("出发地址")
    private String startAddress;
    @ApiModelProperty("出发经度")
    private BigDecimal startLongitude;
    @ApiModelProperty("出发纬度")
    private BigDecimal startLatitude;
    @ApiModelProperty("出发时间")
    private String startTime;
    @ApiModelProperty("出行方式 1公交 2网约 3 步行 4 非急救转运")
    private Integer tripType;
    @ApiModelProperty("陪诊accompany_id（下单可不填）")
    private Integer accompanyId;
    @ApiModelProperty("创建时间")
    private String createTime;
    @ApiModelProperty("疾病")
    private String disease;
    @ApiModelProperty("修改时间")
    private String updateTime;
    @ApiModelProperty("症状")
    private String symptom;
    @ApiModelProperty("备注")
    private String remark1;
    @ApiModelProperty("pc备注")
    private String remark2;
    @ApiModelProperty("1 pc 2 移动")
    private Integer source;
    @ApiModelProperty("1 微信支付 2 残联代付 3 卫健委 4 会员免费")
    private Integer payType;
    @ApiModelProperty("回访状态 0 未回访 1 已回访")
    private Integer visit;
    @ApiModelProperty("回访录音")
    private String recording;
    @ApiModelProperty("预估金额")
    private BigDecimal estimate;
     @ApiModelProperty("发起人id")
    private Integer initiateId;
     @ApiModelProperty("是否删除 0 正常 1删除")
    private Integer isDelete;
     @ApiModelProperty("超出价格 5 公里 20 元")
    private BigDecimal exceed;
    @ApiModelProperty("路程距离")
    private Integer distance;
    @ApiModelProperty("基本费用")
    private BigDecimal basic;
    @ApiModelProperty("陪诊费用")
    private BigDecimal accompanyMoney;
    @ApiModelProperty("默认0 正常 1 退款中 2 退款失败 3:退款成功")
    private Integer failStatus;
}
